package com.maidou.qiantai.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品属性对象 os_attr
 * 
 * @author maidou
 * @date 2024-03-13
 */
public class Attr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户信息表id 主键 */
    private Long id;

    /** 所属分类id */
    @Excel(name = "所属分类id")
    private Long catelogId;

    /** 属性名 */
    @Excel(name = "属性名")
    private String attrName;

    /** 是否需要检索[0-不需要，1-需要] */
    @Excel(name = "是否需要检索[0-不需要，1-需要]")
    private Integer searchType;

    /** 值类型[0-为单个值，1-可以选择多个值] */
    @Excel(name = "值类型[0-为单个值，1-可以选择多个值]")
    private Integer valueType;

    /** 属性图标 */
    @Excel(name = "属性图标")
    private String icon;

    /** 可选值列表[用逗号分隔] */
    @Excel(name = "可选值列表[用逗号分隔]")
    private String valueSelect;

    /** 属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性] */
    @Excel(name = "属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]")
    private Integer attrType;

    /** 启用状态[0 - 禁用，1 - 启用] */
    @Excel(name = "启用状态[0 - 禁用，1 - 启用]")
    private Integer enable;

    /** 快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整 */
    @Excel(name = "快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整")
    private Integer showDesc;

    /** 逻辑删除，0为未删除，1为删除 */
    @Excel(name = "逻辑删除，0为未删除，1为删除")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCatelogId(Long catelogId) 
    {
        this.catelogId = catelogId;
    }

    public Long getCatelogId() 
    {
        return catelogId;
    }
    public void setAttrName(String attrName) 
    {
        this.attrName = attrName;
    }

    public String getAttrName() 
    {
        return attrName;
    }
    public void setSearchType(Integer searchType) 
    {
        this.searchType = searchType;
    }

    public Integer getSearchType() 
    {
        return searchType;
    }
    public void setValueType(Integer valueType) 
    {
        this.valueType = valueType;
    }

    public Integer getValueType() 
    {
        return valueType;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setValueSelect(String valueSelect) 
    {
        this.valueSelect = valueSelect;
    }

    public String getValueSelect() 
    {
        return valueSelect;
    }
    public void setAttrType(Integer attrType) 
    {
        this.attrType = attrType;
    }

    public Integer getAttrType() 
    {
        return attrType;
    }
    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }
    public void setShowDesc(Integer showDesc) 
    {
        this.showDesc = showDesc;
    }

    public Integer getShowDesc() 
    {
        return showDesc;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("catelogId", getCatelogId())
            .append("attrName", getAttrName())
            .append("searchType", getSearchType())
            .append("valueType", getValueType())
            .append("icon", getIcon())
            .append("valueSelect", getValueSelect())
            .append("attrType", getAttrType())
            .append("enable", getEnable())
            .append("showDesc", getShowDesc())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
